package adapter;

import android.support.annotation.Nullable;
import bean.TestBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.dispatchapp.andlei.R;

import java.util.List;

public class DetailAdapter extends BaseQuickAdapter<TestBean, BaseViewHolder> {
    public DetailAdapter(int layoutResId, @Nullable List<TestBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TestBean item) {
        helper.setText(R.id.tv_str,item.str);
        helper.setText(R.id.tv_money,item.money);
    }
}
